]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Fix the check for spanning backgrounds
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 3 Dec 2013 20:41:42 +0000 (15:41 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 3 Dec 2013 23:36:46 +0000 (18:36 -0500)
this._monitorIndex does not exist, and neither does
MetaBackground.monitor_index...

https://bugzilla.gnome.org/show_bug.cgi?id=719803

js/ui/background.js

index c50ae29a0b65a3200a127c399c6ea0c9a82707f1..1f9e494903e151e5d9fb54dbbc76af890b668526 100644 (file)
@@ -222,7 +222,7 @@ const BackgroundCache = new Lang.Class({
                 continue;
 
             if (params.style == GDesktopEnums.BackgroundStyle.SPANNED &&
-                this._images[i].monitor_index != this._monitorIndex)
+                this._images[i].monitor != params.monitorIndex)
                 continue;
 
             candidateContent = this._images[i];